package jim.h.commons;

public class Grid {

    interface Renderer {

        void render(String val);
    }

    public void loadGrid(Renderer renderer) {
        renderer.render("some thing");
    }

    public static void main(String[] args) {
        new Grid().loadGrid(new Renderer() {

            @Override
            public void render(String val) {
                System.out.println(val);
            }
        });
    }
}
